This sample demonstrates a variety of uses of Open Transport’s option management routines. The code from this sample is featured in the latest release (v1.2) of the book “Inside Macintosh: Open Transport”.
Packing List
The package contains the following items items:
• GetSetOptions-PPC.µ — A project to build the PPC version.
• GetSetOptions-PPC — A compiled version of the above.
• GetSetOptions-68K.µ — A project to build the 68K version.
• GetSetOptions-68K — A compiled version of the above.
• GetSetOptions.c — Source code common to both projects.
Sample Requirements
I tested this code with OT 1.2 running under Mac OS 8 on both 68K and PPC. The code should run just fine with OT 1.1.1 or newer. I do not support this code on OT versions prior to 1.1.1.
Running the Sample
To run the sample, simply double click the application and read the output on the console window.
Building the Sample
The sample was built using the Metrowerks CodeWarrior 11 environment and the Open Transport 1.1.1 SDK interfaces and libraries.
To rebuild the sample, first open the project and change the “LatestInterfaces” and “LatestLibraries” access paths to point to the interfaces and libraries from the OT 1.1.1 (or newer) SDK. Then choose Make from the Project menu.
Credits and Version History
If you find any problems with this sample, mail <DevSupport@apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.